# Replication Data for: "The Contribution of Trade to Production-Based Carbon Dioxide Emissions"

by Ran Wu, Tao Ma, and Enno Schr�der

This folder contains the data and the programs required to replicate the tables and figures reported in the main text and the appendix.

The analysis proceeds in two steps:

- The Matlab script imports the WIOD2016 and calculates the emission variables. 
- The Stata script imports the emission variables, merges them with the PWT, and creates the tables and figures. 

1) Matlab

matlab.m imports the data files in the sub-folder wiod2016:

- wiot2000.mat to wiod2016.mat are pre-processed world input-output tables from 2000 to 2014. 
- emissionmt.mat is the pre-processed nm-vector of direct emission intensities. 
- household.mt is the pre-processed m-vector of household emissions.

The script uses the WIOD2016 to calculate various emission variables. The results are saved as Excel files in the sub-folder io_result:

- io_result_all.xlsx
- io_result_wo_primary.xlsx (four primary sectors excluded)

2) Stata

stata.do imports the Matlab-calculated emission variables, creates the figures, and executes the regressions.

